//
//  BSKCancelAlarmClockViewController.h
//  AlarmClock
//
//  Created by aaaa on 2016/10/12.
//  Copyright © 2016年 apple. All rights reserved.
//

#import <UIKit/UIKit.h>
typedef enum _BSKCancelAlarmClockVCMode{
    BSKCancelAlarmClockVCStopWatchMode,//倒计时模式
    BSKCancelAlarmClockVCAlarmClockNormalMode,//闹钟普通模式
    BSKCancelAlarmClockVCAlarmClockHardMode//闹钟答题模式
}
BSKCancelAlarmClockVCMode;

@class BSKCancelAlarmClockViewController;

@protocol  BSKCancelAlarmClockViewControllerDelegate<NSObject>
@optional
/**
 *  符合关闭闹钟的条件时会调用这个方法
 *
 *  @param vc     当前弹出的控制器
 *  @param closed 是否关闭：一直为YES
 */
-(void)CancelAlarmClockVC:(BSKCancelAlarmClockViewController *) vc didClosed:(BOOL)closed;
/**
 *  用户点击再睡一会后调用这个方法
 *
 *  @param vc      当前弹出的控制器
 *  @param minutes 再睡一会的时间（分钟）
 */
-(void)CancelAlarmClockVC:(BSKCancelAlarmClockViewController *) vc moreMinutesAction:(NSInteger)minutes;
@end

@interface BSKCancelAlarmClockViewController : UIViewController
@property (nonatomic,assign) BOOL playSound;
@property (nonatomic,assign) BSKCancelAlarmClockVCMode Mode;
@property (nonatomic,strong) NSDictionary *dic;
@property (nonatomic,assign) NSInteger moreMinutes;//再睡一会的时间
@property (nonatomic,weak) id<BSKCancelAlarmClockViewControllerDelegate> delegate;

- (instancetype)initWithMode:(BSKCancelAlarmClockVCMode) mode;
@end
